package baliOnWeb.testShow;

import org.mortbay.jetty.Server;
import org.mortbay.jetty.servlet.ServletHttpContext;

public class JettyLauncher
{
    public static void main(String[] args) throws Exception
    {
        //We will create our server running at http://localhost:8080
        Server server = new Server();
        server.addListener(":8080");

        //We will deploy our servlet to the server at the path '/'
        //it will be available at http://localhost:8070
        ServletHttpContext context = (ServletHttpContext) server.getContext("/");
        context.addServlet("/", "baliOnWeb.testShow.HelloWorldServlet");

        server.start();
    }
}
